<template>
  <view>
    <Teacherhome v-if="permission===0"></Teacherhome>
    <Studenthome v-else></Studenthome>
    <tab-bar :tabBarList="tabBarList" />
  </view>
</template>

<script>
  import Teacherhome from './@/components/home/Teacherhome.vue'
  import Studenthome from './@/components/home/Studenthome.vue'
  import TabBar from '@/components/tabBar.vue';
  import {
    mapGetters,
    mapState
  } from 'vuex';
  export default {
    components: {
      TabBar,
      Teacherhome,
      Studenthome
    },
    data() {
      return {

      }
    },
    computed: {
      ...mapGetters(['tabBarList']),
      ...mapState(['permission'])
    },
    methods: {

    }
  }
</script>

<style>

</style>
